package com.example.design.dahua.chainofresponsibility.new2;

import java.text.MessageFormat;

/**
 * @author ebnew
 * 具体实现类2
 */
public class ConcreteHandler2 extends AbstractHandler {
    @Override
    public void handleRequest(int request) {
        if (request >= 10 && request < 20) {
            System.out.println(MessageFormat.format("{0} 处理请求 {1}", this.getClass().getSimpleName(), request));
        } else {
            successor.handleRequest(request);
        }
    }
}
